/**
 * This GUI Window is the Main window of the program, thru the user access all the program functions
 * **All communications with the Database for access it's data going thru the Controller Class Sys.Java**
 */
package GUI;

import java.awt.ComponentOrientation;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.SwingConstants;

import GUI.Course.CourseManage;
import GUI.Dog.DogManage;
import GUI.Report.ReportManage;
import GUI.Test.TestManage;

import javax.swing.UIManager;

public class MainMenu extends  JFrame
{

	private static final long serialVersionUID = 1L;
	
	public MainMenu()
	{
		
		setBackground(UIManager.getColor("MenuItem.selectionBackground"));
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		this.setSize(600, 500);
		setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
		setTitle("\u05DE\u05E1\u05DA \u05E8\u05D0\u05E9\u05D9");
		getContentPane().setLayout(null);
		
		JButton button_2 = new JButton("\u05E7\u05D5\u05E8\u05E1\u05D9\u05DD");
		button_2.setFont(new Font("David", Font.PLAIN, 14));
		button_2.addActionListener(new ActionListener()
		{
			public void actionPerformed(ActionEvent arg0)
			{
				
				CourseManage coursewindow=new CourseManage();
				coursewindow.setVisible(true);
				setVisible(false);
			}
		});
		button_2.setBounds(431, 241, 111, 23);
		getContentPane().add(button_2);
		
		JButton button_1 = new JButton("\u05DE\u05D1\u05D7\u05E0\u05D9\u05DD");
		button_1.setFont(new Font("David", Font.PLAIN, 14));
		button_1.addActionListener(new ActionListener() 
		{
			public void actionPerformed(ActionEvent e)
			{
				TestManage testwindow=new TestManage();
				testwindow.setVisible(true);
				dispose();
				
			}
		});
		button_1.setBounds(431, 356, 111, 23);
		getContentPane().add(button_1);
		
		JButton button = new JButton("\u05D3\u05D5\u05D7\u05D5\u05EA");
		button.setFont(new Font("David", Font.PLAIN, 14));
		button.addActionListener(new ActionListener() 
		{
			public void actionPerformed(ActionEvent e) 
			{
				ReportManage reportwindow=new ReportManage();
				reportwindow.setVisible(true);
				dispose();
			}
		});
		button.setBounds(431, 298, 111, 23);
		getContentPane().add(button);
		
		JButton btnNewButton = new JButton("\u05DE\u05D0\u05D2\u05E8 \u05DB\u05DC\u05D1\u05D9\u05DD");
		btnNewButton.setFont(new Font("David", Font.PLAIN, 14));
		btnNewButton.setBounds(431, 182, 111, 23);
		getContentPane().add(btnNewButton);
		
		JLabel label = new JLabel(" \u05E9\u05DC\u05D5\u05DD, \r\n\u05D9\u05E9 \u05DC\u05D1\u05D7\u05D5\u05E8 \u05D1\u05E4\u05E2\u05D5\u05DC\u05D4 \u05D4\u05E8\u05E6\u05D5\u05D9\u05D9\u05D4:");
		label.setFont(new Font("David", Font.PLAIN, 16));
		label.setHorizontalAlignment(SwingConstants.RIGHT);
		label.setBounds(122, 139, 420, 23);
		getContentPane().add(label);
		


		JButton button_3 = new JButton("\u05D9\u05E6\u05D9\u05D0\u05D4 \u05DE\u05D4\u05DE\u05E2\u05E8\u05DB\u05EA");
		button_3.setToolTipText("\u05D9\u05E6\u05D9\u05D0\u05D4 \u05DE\u05D4\u05DE\u05E2\u05E8\u05DB\u05EA");
		button_3.setFont(new Font("David", Font.PLAIN, 14));
		button_3.setBounds(57, 401, 127, 23);
		button_3.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				System.exit(0);
			}
		});
		getContentPane().add(button_3);
		
		JLabel lblNewLabel_1 = new JLabel(new ImageIcon("C:/Project/IDF1/MiscFiles/Picture2.jpg"));
		lblNewLabel_1.setBounds(-10, 0, 594, 464);
		getContentPane().add(lblNewLabel_1);
		
	

		

		btnNewButton.addActionListener(new ActionListener() 
		{
			public void actionPerformed(ActionEvent e)
			{
				setVisible(false);
				DogManage dogwindow=new DogManage();
				dogwindow.setVisible(true);
				dispose();
				
			}

			
		});

		

		
		

	}
}
